package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkChangeEngineer;

import java.util.List;

/**
 * <p>
 * 网点工单维修师傅改派表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-12-05
 */
public interface ZjWorkChangeEngineerService extends IService<ZjWorkChangeEngineer> {


    /**
     * 根据服务商ID & 工单ID获取转单待审核的工单
     * @param networkId 服务商ID
     * @param workIds 工单ID
     * @return
     */
    List<ZjWorkChangeEngineer> getTransferOrderStatutWaitCheckStatus(Long networkId, List<Long> workIds);

    /**
     * 根据[服务商ID]&[工单ID]获取转单待审核的申请单
     * @param networkId 服务商ID
     * @param workId 工单ID
     * @return
     */
    ZjWorkChangeEngineer getWaitCheckTransferOrderApply(Long networkId, Long workId);

    /**
     * 根据工单ID查询是否存在申请转单待审核的
     * @param workId 工单ID
     * @return
     */
    boolean isApplyChangeEngineerWaitCheck(Long workId);

    /**
     * 根据服务人员ID & 工单ID获取已申请取消工单的数据
     * @param networkEmpId 服务人员ID
     * @param workIds 工单ID
     * @return
     */
    List<ZjWorkChangeEngineer> getWaitCheckTransferOrderApplyByNetworkEmpIdAndWorkIds(Long networkEmpId, List<Long> workIds);
}
